{% extends "projects/base.html" %}



{% block title %}{{screenshot.name}} - {{project.name}} - {{block.super}}{% endblock %}


{% block projectcontent %} 

<h1>{{project.name}}<h1>
<h2>{{screenshot.name}}</h2>

{% if screenshot.public or has_member_perm %}

<dl>
<dt><img src="{{screenshot.image.url}}"/></dt>
<dd><em>{{screenshot.description}}</em></dd>
</dl>
</br>
uploaded by {{screenshot.uploaded_by|userlink}}<br/>
{% endif %}
{% if not screenshot.public %}
<strong>This screenshot is not public.</strong><br/>
{% endif %}

{% if not project.screenshot_set.all|length_is:"1" %}
<h2>more screenshots</h2>
{% for alt_screenshot in project.screenshot_set.all %}
<div class="image_list">
<ul>
{% ifnotequal alt_screenshot screenshot %}
<li>
<a href={{alt_screenshot.get_absolute_url}} title="{{alt_screenshot.name}}">{{alt_screenshot.preview}}</a>
</li>
{% endifnotequal %}
</ul>
</div>
{% endfor %}
{% endif %}


{% if has_member_perm %}
<a href="{% url edit_screenshot project.slug screenshot.slug %}" class="actionlink">edit</a>
<a href="{% url delete_screenshot project.slug screenshot.slug %}" class="actionlink">delete</a>
<br/>
{% endif %}

<a href="{{project.get_absolute_url}}">back to {{project.name}}</a>
{% endblock %} 
 
